package com.hqq.behaviour.feature_toggle;

/**
 * TieredFeatureToggleVersion
 * Created by heqianqian on 2017/6/21.
 */
public class TieredFeatureToggleVersion implements Service {
    @Override
    public String getWelcomeMessage(User user) {
        if (UserGroup.isPaid(user)) {
            return "You're amazing " + user + ". Thanks for paying for this awesome software.";
        }

        return "I suppose you can use this software.";
    }

    @Override
    public boolean isEnhanced() {
        return true;
    }
}
